package org.ssm.learn;

import java.io.PipedOutputStream;

public class ThreadWrite extends Thread{
    
    private WriteData writeData;
    private PipedOutputStream outputStream;

    public ThreadWrite(WriteData writeData, PipedOutputStream outputStream) {
        super();
        this.writeData = writeData;
        this.outputStream = outputStream;
    }
    
    @Override
    public void run() {
        super.run();
        writeData.writeMethod(outputStream);
    }

}
